//
//  ConcernAndFan.m
//  __PRODUCTNAME__
//
//  Created by dllo on 16/09/01
//  Copyright (c) dllo. All rights reserved.
//

#import "ConcernAndFan.h"
#import "UserInfo.h"

@implementation ConcernAndFan

- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"Items"]) {
        NSMutableArray<UserInfo *> *items = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            UserInfo *item = [UserInfo modelWithDic:dic];
            [items addObject:item];
        }
        _Items = items;
    }
}

+ (NSDictionary *)objectClassInArray{
    return @{@"Items" : [UserInfo class]};
}

@end
